package com.javasm.springboot2.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author：xls
 * @Version：1.0
 * @Date：2021/11/6-13:04
 * @Since:jdk1.8
 * @Description:
 */
@RestController
public class MyController {
   /* @Value("${name}")
    private String userName;
    @Value("${age}")
    private Integer userAge;
    @GetMapping("springboot")
    public String init(){
        return "你好 SpringBoot"+"   userName"+userName+"   userAge"+userAge;
    }*/
}
